<?php
namespace app\common;
use think\Controller;
use think\Request;
use app\api\model\MoneyLogs as MoneyLogsModel;
class MoneyLogs{    
    public static function add($category,$operator,$month,$sn=null,$old=null,$new=null){  
        $logsModel = new MoneyLogsModel([
            'operator_id'=>$operator,
            'sn'=>$sn,
            'category'=>$category,
            'month'=>$month,
            'old'=>$old,
            'new'=>$new
        ]); 
        $logsModel->save();
    }    
}